package com.university.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.university.pojo.cqe.query.MovieQuery;
import com.university.pojo.dto.MovieTimeSlotUserDTO;
import com.university.pojo.dto.MovieUserDTO;
import com.university.pojo.entity.Movie;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MovieMapper extends BaseMapper<Movie> {
    int deleteMovie(Integer id);

    IPage<Movie> adminGetMoviePage(IPage<Movie> page, @Param("query") MovieQuery query);

    List<MovieUserDTO> userGetMovie();

    List<MovieTimeSlotUserDTO> userGetTimeSlot(Integer movieId);
}
